package com.my.test;

import com.my.service.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: marshal
 * @date: 2023-05-15 15:35
 */
public class UserApp {

    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("user.xml");
        UserService userService = context.getBean("userService", UserService.class);
        System.out.println(userService.findUsers());
    }
}
